{template 'common/header'}
<div class="main">
	<form action="" method="post" class="form-horizontal form" enctype="multipart/form-data">
        <div class="panel panel-default">
            <div class="panel-heading">
                基本设置（移动端）
            </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">手机标题</label>
                    <div class="col-sm-9">
                        <input type="text" name="mtitle" value="{$item['mtitle']}" id="mtitle" class="form-control" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">展示图片</label>
                    <div class="col-sm-9">
                        <div class="fileupload fileupload-new" data-provides="fileupload">
                            {if empty($item['topimgurl'])}
                            {php echo tpl_form_field_image('topimgurl', '../addons/bm_messageboard/template/images/logo.png')}
                            {else}
                            {php echo tpl_form_field_image('topimgurl', $item['topimgurl'])}
                            {/if}
                            <span style="color:red;">*建议尺寸：640X200</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">每页显示数量</label>
                    <div class="col-sm-9">
                        <input type="text" name="pagesize" value="{$item['pagesize']}" id="pagesize" class="form-control" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">是否需要审核</label>
                    <div class="col-sm-9">
                        <label class="radio-inline">
                            <input type="radio" name="ischeck" value="1" {if $item['ischeck']==1 || empty($item)}checked{/if}>是
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="ischeck" value="0" {if isset($item['ischeck']) && empty($item['ischeck'])}checked{/if}>否
                        </label>
                    </div>
                </div>
            </div>

            <div class="panel-heading">
                提醒设置（仅认证服号可用）
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">消息提醒</label>
                    <div class="col-sm-9">
                        <label class="radio-inline">
                            <input type="radio" name="isnotice" value="1" {if $item['isnotice']==1}checked{/if}>开启
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="isnotice" value="0" {if empty($item['isnotice'])}checked{/if}>关闭
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">模板ID</label>
                    <div class="col-sm-9">
                        <input type="text" name="templateid" value="{$item['templateid']}" id="templateid" class="form-control" />
                        <div class="help-block">
                            <a href="https://mp.weixin.qq.com" target="__blank"><code>微信公众平台</code></a>模板库选择行业<code>IT科技 - 互联网|电子商务</code>，搜索“<code>用户咨询提醒</code>”
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">通知用户openid</label>
                    <div class="col-sm-9">
                        <input type="text" name="noticeuser" value="{$item['noticeuser']}" id="noticeuser" class="form-control" />
                        <span class="input-group-addon"><a href="/web/index.php?c=mc&a=fans&" target="_blank">点击此处获取粉丝管理中的粉丝编号</a></span>
                    </div>
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                <div class="col-sm-9">
                    <input name="submit" type="submit" value="提交" class="btn btn-primary col-lg-2">
                    <input type="hidden" name="token" value="{$_W['token']}" />
                </div>
            </div>
        </div>
	</form>
</div>
{template 'common/footer'}